package com.hwtx.form.persistence.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hwtx.form.domain.def.FormProperties;
import com.hwtx.form.dto.FormQuery;
import com.hwtx.form.persistence.entity.FormDefEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 表单定义 Mapper 接口
 *
 * @author hwtx
 * @since 2023-12-10
 */
@Mapper
public interface FormDefMapper extends BaseMapper<FormDefEntity> {

    /**
     * 表单定义详情
     */
    FormDefEntity getFormDefById(Long id);

    /**
     * App表单定义详情
     */
    FormDefEntity getAppFormDefById(Long id);

    List<FormProperties> list(FormQuery formQuery);

    List<String> listFormType();
}
